# Define the path to the header file for the Spectra6 rendering library.
# You can change this path to point to a different location if the header file is stored elsewhere.
SPECTRA6_RENDER_HEADER	:= ../include/libEink_Spectra6_render.h

# Define the path to the static library for the Spectra6 rendering library.
# You can replace this with the path to a shared library (.so) or another static library (.a).
# For example, to use the shared library, you might use:
# SPECTRA6_RENDER_LIBRARY := ../lib/linux-x86_64/SHARED/libEink_Spectra6_render_x86_64.so
SPECTRA6_RENDER_LIBRARY 	:= ../lib/linux-x86_64/STATIC/libEink_Spectra6_render_x86_64.a

TARGET          := Spectra6_render_sample

SRC				+= sample.c
SRC				+= bmpView_JY.c 
SRC				+= timeInterval_JY.c 

SRC_H			+= $(SPECTRA6_RENDER_HEADER)
SRC_H			+= bmpView_JY.h
SRC_H			+= timeInterval_JY.h

INC				:= -I./ -I../include
LIB				:= $(SPECTRA6_RENDER_LIBRARY) -pthread -lm

CFLAGS          := -std=c99 -O3 -Wall -Wno-unused-result 

$(TARGET): $(SRC) $(SRC_H)
	$(CC) $(CFLAGS) $(INC) $(SRC) -o $@ $(LIB)

.PHONY: clean

clean:
	rm $(TARGET)
